﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="TeacherList.aspx.cs" Inherits="LabMS.Web.TeacherList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>教师查询列表</title>
    <base target="_self" />
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript">
    function focus()
    {
        var textName = document.getElementById("tbKeyWord");
        textName.focus();
    }
    function DbClickEvent(a,b,c)
    {
        
          var ret = new Array(2); 
          ret[0] = a; 
          ret[1] = b; 
          ret[2]=c;
          window.returnValue = ret; 
          window.close();
          return false; 
    } 
    </script>

</head>
<body class="mainBody" onload="focus()">
    <form id="form1" runat="server">
        <div class="main">
            <p>
                按&nbsp;<asp:DropDownList ID="ddlSType" runat="server">
                    <asp:ListItem Text="教师编号" Value="0"></asp:ListItem>
                    <asp:ListItem Text="教师名称" Value="1"></asp:ListItem>
                </asp:DropDownList>
                <label>
                    搜索:</label>
                <asp:TextBox ID="tbKeyWord" runat="server"></asp:TextBox>
                <asp:Button ID="btnSearch" CssClass="button" runat="server" Text="搜索" OnClick="btnSearch_Click" />
            </p>
        </div>
        <div class="main">
            <asp:GridView ID="GridViewDic" runat="server" Width="100%" PageSize="10" AllowPaging="true"
                DataKeyNames="ID" AutoGenerateColumns="False" OnRowDataBound="GridViewDic_RowDataBound"
                OnPageIndexChanging="GridViewDic_PageIndexChanging" CssClass="infoTable">
                <Columns>
                    <asp:BoundField DataField="Teacher_Code" HeaderText="教师编号" />
                    <asp:BoundField DataField="Teacher_Name" HeaderText="教师名称" />
                </Columns>
                <HeaderStyle CssClass="header" />
                <RowStyle HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <a style="color: Red">无数据</a>
                </EmptyDataTemplate>
            </asp:GridView>
            <asp:Label ID="lbType" Visible="false" runat="server" Text="Label"></asp:Label>
            <asp:Label ID="lbPageName" Visible="false" runat="server" Text="Label"></asp:Label>
        </div>
    </form>

    <script type="text/javascript" src="../js/jQuery/jquery-1.3.1.js"></script>

    <script type="text/javascript">

        $(function(){
            /* 修改样式 */
            $("#GridViewDic > tbody > tr:even").not(":first").addClass("even");
            $("#GridViewDic > tbody > tr").not(":first")
                .hover(
                    function(){
                        $(this).addClass("hover");
                    },
                    function(){
                        $(this).removeClass("hover");
                });
        });
    </script>

</body>
</html>
